package com.lovemanai.factory;

import com.lovemanai.service.Person;
import com.lovemanai.service.impl.American;
import com.lovemanai.service.impl.Chinese;

public class PersonFactory {

	public Person getPerson(String ethic) {
		
		if(ethic.equalsIgnoreCase("chinese")) {
			return new Chinese();
		} else {
			return new American();
		}
		
	}
	
}
